package com.itheima.opp;

public class Student {
    //private修饰，只能在本类中访问
    private String name;
    //产生一个无参构造器，JavaBean
    public Student() {
        System.out.println("无参构造器被执行！！");
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public String getName() {
        return name;
    }

    public int getScore() {
        return score;
    }

    private int score;



}
